//#include "Counter.h"
//#include<QIcon>
//#include<QDebug>

//int main(int argc, char * argv[])
//{
//    QApplication app(argc,argv);

//    Counter counter;
////    counter.setWindowTitle("计数器");
////    QIcon icon("counter.jpg");
//    QPixmap icon("counter.jpg");
//    if(!icon.isNull())
//    {
//        qDebug()<<"图片加载成功"<<endl;
//        counter.setWindowIcon(icon);
//    }
//    counter.resize(350,200);
//    counter.show();




//    return app.exec();
//}

#include "Counter.h"
#include <QApplication>
#include <QIcon>
#include <QDebug>

int main(int argc, char * argv[])
{
    QApplication app(argc, argv);

    Counter counter;
    QIcon icon("/counter.png");
    if (!icon.isNull())
    {
        qDebug() << "图片加载成功" << endl;
        counter.setWindowIcon(icon);
    }
    counter.resize(350, 200);
    counter.show();

    return app.exec();
}
